{
	template:`
	<a-page-header title="编辑" sub-title="模块信息">
		<template #extra>
			<a-button type="primary" @click="save();">保存</a-button>
			<m-back @click="back(false);">关闭</m-back>
		</template>
		<a-card :hoverable="true" :bodyStyle="{padding:'20px 20px 0'}">
			<a-form class="index-form" :wrapper-col="{span:24}">
				<a-row :gutter="10">
					<a-col :span="8">
						<a-form-item label="名称" class="index-form-item">
							<a-input v-model:value="model.name" placeholder="请输入名称"/>
						</a-form-item>
					</a-col>
					<a-col :span="8">
						<a-form-item label="图标样式" class="index-form-item">
							<a-button type="primary" @click="selectIconClass(model,'icoStyle')">选择</a-button>
						    <a-button v-if="model.icoStyle" @click="model.icoStyle='';" type="link">清除</a-button>
							<m-icon :name="model.icoStyle"></m-icon>
						</a-form-item>
					</a-col>
					<a-col :span="8">
						<a-form-item label="排序" class="index-form-item">
							<a-input-number v-model:value="model.sort" placeholder="请输入排序" style="width:100%"/>
						</a-form-item>
					</a-col>
					<a-col :span="24">
						<a-form-item label="地址" class="index-form-item">
							<a-input v-model:value="model.urlPath" placeholder="请输入地址"/>
						</a-form-item>
					</a-col>
				</a-row>
			</a-form>
		</a-card>
	</a-page-header>
	`,
	props: ['localeZh','param','parentVue'],
	data:function(){
		return {
			model:{},
		};
	},
	mounted(){
		this.model=this.param.model;
	},
	methods:{
		save:function(){
			this.requestData('action/manage/module/doSaveMenu',
				{menu:this.model},
				data=>{
					if(!data.code){
						this.$message.success(data.msg);
						this.back(true);
					}else{
						this.$message.error(data.msg);
					}
				}
			);
		},
	}
}